package matrixcollision;

import java.util.Scanner;
/**
 *
 * @author Verwalter
 */

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        //Time
        long time;

        System.out.println("Please enter width of the Matrix: ");
        int w = 6;
        //w = scan.nextInt();

        System.out.println("Please enter height of the Matrix: ");
        int h = 6;
        //h = scan.nextInt();

        FastestMatrix M = new FastestMatrix(w,h,true);
        FastestMatrix N = new FastestMatrix(w,h);

        System.out.println("Please enter a number of iterations: ");
        int iterations = 1000000000;
        //iterations = scan.nextInt();

        time = System.currentTimeMillis();

        for(int i = 0; i < iterations; i++)
        {
            M.and_with(N);
        }
        System.out.println("Test ran in: " + (System.currentTimeMillis() - time) + " ms.");
        
        //M.and_with(N).print();

        /*
        FastMatrix F = new FastMatrix(w,h,true);
        F.print();
         */
    }

}
